Optional parameters

- [x] Change template arguments to optional arguments
- [x] Allow for settings
- [x] Constants for defaults
- [x] Load CDN for all non-local JavaScript