Update to use local javaScript