move dependencies to jsclient