altered javascript.js to fix perspective property on 3d transforms