Made changes to remove the restriction of Categories to not have space. Refactored jQuery so it is making sense to me on reading.