changed input 'number' to 'range' to keep differnces between mobile and browser minimal
whitespaces and jslint cleanup