rename story.jp to pin.js

fixup other minor bugs