JavaScript required for this navigation system.