Added Gruntfile with jshint and corrected most js errors
Added semicolons
Applied jshint on test files and corrected errors
Does not allow functions in loops anymore
Minor modifs to grunt file
[IMP] Added grunt file to use jshint on all the javascript files in the 'web' addons and corrected all the potential errors highlighted by jshint