added javascript to change the nav menu states to stay selected on click.