Some of my JS code snippets