separate index.html into php snippets