datpath.js jhint error fixes