Improve support for the range input

The range input now works better on more browsers (namely Firefox). No testing so far on IE, screw them.

Signed-off-by: Emanuele <feliziani.emanuele@gmail.com>