My javascript snippets. Remove unused (at least for now)