a lot of changes again

making the app work using jquery