Various javascript helpers to simplify cross-browser Javascript programming