JavaScript thoughts and snippets