Update pololumaestro.js

extend constructor : define on open callback and set debug var