Added Javascript Snippets under integration and added more snippets to the docs