Split JS code