Php Get Random Array Javascript Methods