Added .jshintrc
Replaced .forEach with regular for loop to remove function inside loop JSHint warning