Restructure project. Use browserify and Gulp. Switch to VueJS.