[JS] Add back in storage asserts