fixing refactored bcshow.js getting run twice