making javascript work in bootstrap