How to Code: Rectangular Collision Detection with JavaScript