Some very usefull snippets for JS