JSNES: A Javascript NES emulator

This guy built a javascript SNES emulator. It won't load on the Pre browser but would this be something the guy could port to the Pre?