fix jshint issues, added temp map stuff, left keys in - oops