A collection of JavaScript that is probably done better in other things like underscore or jquery.