Fix some Javascript problems

Fix the problem where asm.js wasn't working with some code and also fix
the newly discovered problem that makes ACE display text characters
instead of spaces.