Update transform.js

Fix 3d Transform to 2d Transform conversion to work with jQuery 1.5.1
and under