set platform to create context in browsers