Add argument type check to $(".slider").val();

Resolves a bug for $(".slider").val(0) => if(arguments[0]) => false