Spawning colorpicker window on layyer preview clicks.

Cleaned up the JavaScript and now the colorpicker popup spawns correctly when the layer block is clicked.