Very lightweight javascript utility functions for when jQuery is overkill