fix express middleware, script/style inlining