Small yet powerful JavaScript code snippets