Use K&R style for brackets
Use grunt options instead of data
Fix minor code issues
Use typeof for function checking