add js dependencies
copy js to dist directory