Made navbar entirely javascript