input types constants replacement & JS intend