path fix in JS file. note to self: relative paths next time