Implemented JavaScript Snippets