pass interface to js folder. Add error to html