replace the document.getElementById() call by the element it self .