trying to fix the errors in divs and ids for javascript