Add device emulation in the native API stubs
Cancel require.js timeout for really slow devices.