make ajax firefox ready
minor typos
now collection names could include whitespaces