small fix to pinndit.js