opentok functions inside domready