update bs javascript