added some js init for bs