added a web app interface to allow js interface