minor changes to firepano.js