Better compatibility with jquery.turbolinks

[jquery.turbolinks](https://github.com/kossnocorp/jquery.turbolinks) makes $() to fire on each page load. But Facebook SDK should be loaded only once, so we need additional check.