Update javascript.json

Added a few more useful snippets