Calling javascript on the page from html5 game

Do we have a solution to this now?