If you are adding the input color element using a script, then you need to manually install jscolor on that element.
Check the jscolor docs on this:
https://jscolor.com/docs/#doc-install-include-jscolor
jscolor.install();
Or manually create a JSColor instance:
var myPicker = new JSColor(<targetElement>, <options>)