Allow user to change settings using data attributes

- Changed .bind() to .on()
- Allow user to change settings using data attributes
- Updated code style