preparing to ready for browser use
more browser stuff, still incomplete
fix module require typo