Javascript and other snippets