Simple Collision Detection in JavaScript

I've been playing around developing some simple games (pun intended^^) from time to time, just for the fun of it. To do that I very often come across some kind of collision detection. I thought I'd show you an easy way of detecting collisions in JavaScript! What is a collision? Before we