Someone with way too much time on their hands ported a NES emulator to JavaScript. Feel like playing Super Mario Bros or Zelda at work? Grab a fast browser like Google Chrome and head on over here,

http://benfirshman.com/projects/jsnes/