refactoring - putting some default values for scripts and stylesdir - changing the path to CDN to use http when accessing through the file protocol