PHP Single-page-app Resources