creating a js file specific for the metadata page template