pulled stories.js out of nomic api repo