added 3dsx support

This adds 3dsx support
the case if j is anything other is cached in if (j >= 2) { because that is faster but if you want I add a default: