Bootstrap 3 compatibilty
Use .val()
Ignore if max<=0
Automatic warp
Remove duplicate calculation
Merge pull request #1 from the-glu/master

Bootstrap 3 compatibilty + fixes