Collection of javascript bits to hack stuff around