[jQuery] Convert existing JS-code to jQuery

[jQuery] Convert existing JS-code to jQuery

> From: Stefan Nagtegaal