Document cross-browser compatible plain old javascript