Added npm package + grunt. Linted js file.
Separated js source file into color/polynomial/main files.