added linting via grunt task
fixes to linting errors, and a simple test