refactor to browserify
rendering in browser
5px browserify implementation