Updated Java snippets, included snip for common collections objects
Improvements to JS snippets by tom cammann