Formatting updates
Changed addJavascript to regClientScript