Simplified template grunt task
Reinstated JsHint and fixed reported issues.