add js/css from view to head