Do not display timeline js after navigating pages

Timeline js(agnito:meteor-timeline package) works well when I first get into the site.

However, When coming back to the template including timeline js after
page moving thru navigation menu using iron router or something like
that, timeline isn’t displayed .

What I am only able to see is empty <div class=“storyjs-timeline” …> .
The way to display the time line is refreshing(F5) the page.
Could you check the code below?

[.html]
< template name=“tl”>
< div id=“timeline-embed”>
< /div>
< /template>

[.js]

var tempFunc = function(){
console.log(‘createStoryJS’);
createStoryJS({
type: ‘timeline’,
width: ‘100%’,
height: ‘400’,
source: dataobject, // time line source , JSON
embed_id: ‘timeline-embed’,
});
};

Template.tl.onRendered(function(){

$(document).ready(function(){
    tempFunc();
});

});

Template.tl.onDestroyed(function(evt,tmpl){

});