[javascript] Is there a php echo/print equivalent in javascript