Updating the js and metadata templates