fixed typos on pathgen.js