neat little javascript snippets