Fix grunt version and code formatting.