move all the head files (e.g. css, js and meta) tags to a single function