Added data-api support so it can also be used in a similar manor to a Bootstrap plugin.