Some workaround to make js works with Chrome beta