now changing html id's to hamlet syntax (needs a little optimization)