added jshint task and linted js files. wrapped code in Gruntfile into IIFE