Unify library scripts in frontend/php.