Setup JS scripts so the colorpicker works when not admin

3.0-unstable version of #2404