enclose the html demo code, to not trample global vars
optimize build commands, updated build
Makefile fixes for OS X
Rebuild of box2d.js on OS X