Initial JS code