Refactor to pass JSLint
Add license file, make example lint-compliant, rename main file