fixed profiler for browserify
expose profiler and removed extra spaces
implemented redraw method