Php Class Variable Array Javascript Mdn Setinterval Js