fixed collection type selection when creating collection via web interface
jslint