Changed a lot of logic, added a counter. Got rid of unused html tags. Minified all the things