Fix function name "getJavascriptCode"