Edited new way to use and changed data-api init to load on document ready instead.