Added support for Javascript snippets