Check data attributes against a "true" string

- Changed the data attribute conditionals to check against the "true" string because their values aren't returned as a Boolean and there's no big reason to parse the string values into a boolean and then perform the check
- On line 335, I wrapped the `data.limit` value in a `parseInt` function just to be safe. I'm pretty sure this can be removed though