follow html5 progress attribute max and value