Update dom methods to avoid illegal invocation error.
Update dom methods to avoid illegal invocation error.

opentok/accelerator-core-js,opentok/accelerator-core-js,adrice727/accelerator-core-js,adrice727/accelerator-core-js