fix the tpjs script
Merge remote-tracking branch 'origin/devel' into devel