span to a in js