Added support for Javascript mode in library

I did a first pass at making spacebrewP5 compatible with JavaScript mode. All existing examples are tested & supported. 

It's a bit weird that this is different than spacebrew.js (though not by much), but I do think it makes sense to be this way for now. 

Give it a shot! Add the library like normal, then simply run the app from Processing in javascript mode.