changed every necessary document.getelementById() to jquery