adding js-lib from bs