put initial data required directly onto page from template, instead of doing long ajax request