undoing recent changes to firepano.js