Interactive Web Application
Yes it possible, but in your case you should do this. 

Instead exporting scene, you should open blend4web projects manager 

 

Here you can create a new project



In projects, blend files are assets, they will be used by script files.

In projects manager you will find blend files, exported scenes as json files and JavaScript files to work with:



You can edit Script files using any text editor or from project manager:



here you can find more information about it:
https://www.blend4web.com/en/community/article/341/