adding collection type
jslint fixes