Php Get Random Array Javascript Methods Syntax