module init hack for browser storage

We only need to keep these changes until module porting is complete.