Php Get Javascript Array Methods Map