Integrate from DollyZoom.js - change to require.js format