Fixed bug with story editing in share mode.

- Found and fixed another share mode bug--url was being generated
  before_save rather than before_create, so it was invalid once
  the story was modified
- Fixed indentation in JS file.