Extending JavaScript in all the right ways