avoid crashing js when the alphabetical index is loaded via ajax