#11 check for type(on update pub) +cleanup
Merge branch 'master' of https://github.com/libreliodev/javascript