finishing writing new storyMode.js module