Go Back ad Go Forward function for Electron App

We have Electron viewer for HTML documentation. This documentation is generated using MadCap Flare. Now, using one of the themes in Flare, if I generate the docs and view in Electron, the default Flare generated Back and Forward buttons in the output work.

In another theme, where these buttons need to be added separately with javascript code like: window.history.back(); for onclick event, the buttons dont work in the Electron viewer. What javascript can I add to make this work like it does in the other theme. The Flare team is uanble to help. The Electron R&D says that they have disabled most of Electron’s browser like feaures. So now, I need the buttons working like they do in the older theme.