Fix a bug with pinpinct.js and firefox (function used before
declaration)