templates, javascript - post layout