fix: fix color picker field type
test: add tests for new, create, edit, update

Add javascript files.