Added some useful diagnostic information when booting up.
Reformatted javascript files