Some jQuery and javascript utilities