Fixed getContext of null

We are not calling init until the page is fully ready.