organized the code into modules. updated jshintrc