Fixed cast checking.  Moved cast of value to isNaN/Number instead of indexOf.  Fixed (personal) grunt build