Php Class Variable Get Set Function Javascript