Update transform.js

Added method to determine if 3d Transforms are supported.
Added a hook to replace 3d Transforms with their 2d counterparts if the
former are not supported.