Added the javScript code to the top, left, and right coliders.