adding Gruntfile.js, package.json and ignore node modules in git repository
some minor changes:
- remove unused var
- use 'strict equal' (===) in if statement
- remove some white spaces
replace tabs with two white spaces
better indenting
add minified version of syncHeight