updats to coding syntax to jQuery format