Adds javascript collection class.