no need to exchange variables between php and js