refactoring code and using livereload and cdns