Redesigned API, and chaged the javascript a bit
Fixed merge conflict. Last exam is selected as default