Started writing tests and removed jQuery dependencie for collecting elements