Implemented client-side code for story splitting.