Remove rand function left over from PHP that is no longer needed.
Move click events into JS file
Repair html whitespace