Change doubleField type from text to number

With type number we are able to use some of HTML5 attributes.