added improved javascript mode and javascript snippets