pullout getJSPath

Moved it to `utils` folder, and require it for each generator..