Fixed the  jQuery code. Cleaned up the code in folder structure