Add grunt for generating 'dist' version
Fix JSLint errors