Working version

Added PHP to solve single-origin issues and cache control.