Add JavaScript example