useful tidbits of javascript to be used anywhere and everywhere!