Api and design inspired by jQuery Boilerplate