Endpoint LoadScript functionality