Code refactored to satisfy JSLint. Gruntfile created. Closes #22, closes #23