Revert "Revert "changed getElementbyID to $""

This reverts commit 0202d56aa170abbd488fee90c9a1ac1e51704b08.