Less index.html code.
Use ctx instead of g_ctx.
No more g_page global.