<script> setTimeout(function() { pm('<?=$pm_title?>', '<?=$text?>'); }, 5000); </script>
echo <<<JS <script> setTimeout(function() { pm('{$pm_title}', '{$text}'); }, 5000); </script> JS;