Moved loading of javascript/css into preprocess function