Renders javacript to the view.