add some java and js snippets