Php Class Variable Array Javascript Methods Syntax