Updated example plugin JS code