Javascript snippets considered useful