Add a dropdown menu to a boostrap3 navbar with javascript