Just a bunch of javascript helpers I use time to time