Update public/app.js

firefox-compatable mode