Derp, async javascript ftw. or lose I suppose...