List view and grid view work seperatly
Javascript switcher is complete and responsive
tidied up the code