Broswerify rejig

I did this as basic as I could for now.