diff --git a/browser-extensions/chrome/build.sh b/browser-extensions/chrome/build.sh
index a8c17c2f8..b6c438cac 100644
--- a/browser-extensions/chrome/build.sh
+++ b/browser-extensions/chrome/build.sh
@@ -43,9 +43,13 @@ echo "${OpenColor}${Green}* Copying all chrome-extension files...${CloseColor}"
sed "s/APP_VERSION/$VERSION/g" manifest.json > $APPDIR/manifest.json
checkOK
+
INCLUDE=`cat ../include`
cd $BUILDDIR/../..
-CMD="rsync -rLRv --exclude-from $BUILDDIR/../exclude $INCLUDE $APPDIR"
+LIBS=`cat index.html |grep -o -E 'src="([^"#]+)"' | cut -d'"' -f2|grep lib`
+echo "LIBS $LIBS"
+
+CMD="rsync -rLRv --exclude-from $BUILDDIR/../exclude $INCLUDE $LIBS $APPDIR"
echo $CMD
$CMD
checkOK
diff --git a/browser-extensions/include b/browser-extensions/include
index eee36fd98..fe440a152 100644
--- a/browser-extensions/include
+++ b/browser-extensions/include
@@ -1,22 +1,10 @@
-css font img js sound config.js version.js index.html popup.html
- lib/mousetrap/mousetrap.min.js
- js/shell.js
- lib/angular/angular-csp.css
- lib/angular/angular.min.js
- lib/moment/min/moment.min.js
- lib/angular-moment/angular-moment.js
- lib/qrcode-generator/js/qrcode.js
- lib/angular-qrcode/qrcode.js
- lib/angular-route/angular-route.min.js
- lib/angular-foundation/mm-foundation.min.js
- lib/angular-foundation/mm-foundation-tpls.min.js
- lib/peerjs/peer.min.js
- lib/bitcore/browser/bundle.js
- lib/crypto-js/rollups/sha256.js
- lib/crypto-js/rollups/pbkdf2.js
- lib/crypto-js/rollups/aes.js
- lib/file-saver/FileSaver.js
- lib/socket.io-client/socket.io.js
- lib/sjcl.js
- lib/ios-imagefile-megapixel/megapix-image.js
- lib/qrcode-decoder-js/lib/qrcode-decoder.min.js
+css
+font
+img
+js
+sound
+config.js
+version.js
+index.html
+popup.html
+lib/angular/angular-csp.css
diff --git a/index.html b/index.html
index d7fb6afe7..c337818e3 100644
--- a/index.html
+++ b/index.html
@@ -910,10 +910,7 @@ on supported browsers please check http://www.w
go back...
-
-
-
@@ -932,8 +929,10 @@ on supported browsers please check http://www.w
-
+
+
+