Isolate JS code