Get rid of php-generate config - useless with same-origin policy anyway.
Fetch JS from same host, as same-origin policy wants.