regarding `!isNaN(lvl)` are you actually afraid it will be the value NaN? if so then `lvl === lvl` will do what you want in a way that is better supported in older browsers, if you just want to make sure its numeric then `typeof lvl === 'Number'` might be better.