Add detect-3d JS