improve show code for demo
reads the javascript and display it in the div