Update for browserify
refactor lib and add public folder