Moved JS file out into seperate interface.js