Small library of useful functions and prototype methods for JavaScript