Added analyze.js and story.js to lib directory