Add dirname to path of json files, jshint suggestions applied