adapted js to div namign changes