JS code for the Ultracam pipeline