You should add the meta tags server-side.
Meta tags are usually used to describe the content of the page for various kinds of robots (search engine, Facebook share button, ...), or send additional info about the page to the browser (rendering mode for IE, charset declaration). Most of that functionality will not work - could not work - if you add meta tags through client-side script.