Added javascript support for navbar collapse