Split JS code from non JS code