Code formatting

- added copyright notice
remove all uses of `new Function()`

- restrict onImmediateChange to a function
- use JSON.parse instead of Function hack
Extracted jscolor.color -> Color(); retained backwards compat
jshint
Extracted constants
Check for input[type='color']
Don't require 'color' class; grab from the type