Fix JSHint errors

Build will now fail if any linting errors are encountered.
Also fixed the colour picker so that it calls a method to set the colour when a new one is selected, rather than re-initializing the plugin every time.
@settinghead @stulees @alex-deaconu