Minor Changes with Angular Promise and PHP files.

TODO: Fix PHP Errors coming up.