moving remote jscript  to the application