git all the x-tag stuff in javascript