Removed grunt, added Makefile and jshint then fixed a heap of issues.