added jshintrc and cleaned up source