change input type="number" to type="text" for browser compatibility