renamed properties to match that of the browser API.