I blue it
Fixed issue with JS breaking on log page.  Will revisit as the fix is a bit hackier than I like.