Use gulp
Add missing semicolons
Split javascript source into seperate files
Don't wrap main code in anonymous function
Move package.json into the right directory
Add polygon prototype