Php Get Last Array Element In Javascript How To Create