application/javascript is also a valid mime for JS

According to [RFC 4329](http://www.rfc-editor.org/rfc/rfc4329.txt) the MIME type for javascript files should be either application/javascript or application/ecmascript.
Make sure loadMode triggers a redraw

Closes #1137
mode SQL: added special syntax for datetimes

* standard SQL syntax for date/time/timestamp values
* ODBC syntax for date/time/timestamp
* added new syntax in index.html