Validation and refactor

- Checked if selector matched to avoid initialisation on undefined.
- Renamed slides variable.
- Initialising plugin differently.
- Removed unnecessary parameters from demo main.js plugin call.