Extract some html hard-code out of js