Tidied up JavaScriptFileWriter and added support for Switch statements, added $_.js library file.