fixed typos on pathgen.js

Should be included in master now?