Setup JS scripts so the colorpicker works when not admin

3.0-unstable version of #2404
Merge pull request #2429 from jamesgol/colorpicker-3

Setup JS scripts so the colorpicker works when not admin