Playing around with the rendering and the javascript