Added snippets for jquery.map and jquery.each