Update library.js

Change library headings to an empty optgroup. Options could also go inside the optgroup but that would add a margin on the left of each.