/*==================================== free to use for personal and commercial usage author: # license: open source - mit please visit http://opensource.org/licenses/mit for more full deatils of license. share us if you like our work enjoy our codes for free always. ======================================*/ (function ($) { "use strict"; var mainapp = { main_fun: function () { var count = new countup("error-link", 10, 404, 0, 5); //change 404 to the error value as you want window.onload = function () { count.start(); } /*==================================== write your scripts here ======================================*/ }, initialization: function () { mainapp.main_fun(); } } // initializing /// $(document).ready(function () { mainapp.main_fun(); }); }(jquery));