added framework.onCompileJS and framework.onCompileCSS