updating spec to check for location of code elements
fixing travis and jslint
fixing travis and jslint