Loads game after the API and the document is ready.

@janiskesteris please review.