I did a script that help me to make a web page in realtime, I can put html and css and everything work well, but I can't execute javascript because I am using a editor based in string, can you help me to find a way to execute javascript in this editor? 

Pay attention, with this simple script you can put a whole page's code with CSS and HTML without escape and you'll see a formated page, but JAVASCRIPT don't work in this script.

```js
function html() {
var str = document.getElementById("go").value;
  document.getElementById("show").innerHTML = str;   
}

```

```html
<p id="show"></p>
<textarea id="go" onKeyUp="html()"  width="100%" cols="50" rows="10">
   </textarea>
```

UPDATE, at last, I got, this editor execute javascript too! Now I can build a whole page with javascript inside, thank you for the answers!!!

```js
$(document).ready(function(){
  $('#editor').keyup(function(){
      $('#page').html($(this).val());
  });
   });
```

```html
<p id="page"></p>
 <textarea id="editor"  width="100%" cols="50" rows="10" placeholder="you can use html, css and javascript here..."></textarea>
 <script src="http://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
```