created: pg.js
clean code
updated version