add source type for css and js