The error has been fixed by adding the jQuery selector '$' as you can see below. /*! timer.jquery 0.7.0 2017-04-15*/ (function($) { ... rest of the code ... } (jQuery));