Headers ugly js solution