JavaScript code I am storing for reference. Ie. higher order functions; and other useful functions and code