Fix typo in share/embed popup JavaScript
Fix typo in share/embed popup JavaScript

The cases for the ternary operator were reversed.

Addresses #824

denverfoundation/storybase,denverfoundation/storybase,denverfoundation/storybase,denverfoundation/storybase