upgrade Js library and don't initiate unless needed by View