This was already done from native code, but needed to happen for the browser shim and be tested.
This meant we needed to rename tests/lib to tests/js so they folder names would not conflict.