Added gruntfile and some js cleanup