Sample JS code