Use this pattern to build Bootstrap plugins and use the power of data-api