Add vector related functions to jstat.component.js