fixed pins.js.coffee bug