JavaScript example for jQuery