GH-2 Start & end profile in JS code