separated head (css) and tail (js) from base template