title: Override/Rewrite a javascript library function
body: <p>I am using an open source javascript library <a href="http://timeline.verite.co" rel="noreferrer">timeline.verite.co</a> 
  It's a timeline library which works great on page load. But when I try to repaint the timeline on certain condition, it starts giving out weird errors</p>
  
  <p>I would like to modify the init function in the library. But instead of changing it in the original library itself, I would like to rewrite/override this function in another separate .js file so that when this function is called, instead of going to the original function, it must use my modified function.</p>
  
  <p>I'm not sure whether to use prototype/ inheritance and how to use it to solve this problem?</p>