final ajax /jQuery scripts adapted

comments added