modified jshintrc and cleaed up some syntax errors
refactored the parseDocuments method