Remove excess functions from php-js