removed doubled id's and added some additional comments in the js file