Update 'mk' to wrap code inside function for browser.
Add .end() and .ends().
Add a version of .defer() that works nicely with the browser.