(function ($) { "use strict"; var tableSources = { initialize: function () { this.baseStyle(); this.noStyling(); this.compact(); this.hover(); }, baseStyle: function () { $('.base-style').DataTable({ language: { oPaginate: { sNext: '', sPrevious: '' } } }); }, noStyling: function () { $('.no-styling').DataTable({ language: { oPaginate: { sNext: '', sPrevious: '' } } }); }, compact: function () { $('.compact').DataTable({ language: { oPaginate: { sNext: '', sPrevious: '' } } }); }, hover: function () { $('.hover').DataTable({ language: { oPaginate: { sNext: '', sPrevious: '' } } }); } }; // Initialize $(document).ready(function () { "use strict"; // Start of use strict tableSources.initialize(); }); }(jQuery));