Changed all DOM usages to use jquery instead