Revert attempt to detect device platform in index.js.