[Fix] removing browserbuild dependency

Hey @swissmanu I created this pull request please review, no bid change just added the client code in a wrapper function and then use it to build the source for the library. I also updated `Makefile` and `package.json` accordingly.