A set of javascript utilities