resolve js dependencies for build