jade and javascript snippets