a collection of my commonly used javascript functions.