Removed jQuery dependency and fixed some W3C validator errors