Fix typo in CR/LF handling in lexer.
Abort main.c with return status if a script fails.

Needed for test suites.
Calculate exponent the same way as fractions for symmetry in the lexer.

"3E-1" should have the same rounding error as "0.3"
The typeof operator should return 'function' for callable objects.
Fix bug in js_rot.
Fix bug where do/while continue statement jumped to the wrong location.