A bit of javascript to evenly distribute navigation items