Using array instead of a jQuery collection

Closes #3