Script used to generate navbar menu