Fix integration with chat-extension
 * jquery lib seems to not be loaded when an app is added to top-navigation
 * move javascript source from the index.gtmpl to a dedicated js file