fixed various bugs due to merge with mwh

Formatting of generated js improved.
Syntax error removed form parser
Missing asString and asDebugString added to library
Math removed from gtk.js and inserted in gracelib.js
two tests added
more indentation fixes