A hodgepodge of javascript functions with varying uses.