move more code into js file
added color picker