Modified application.js to update vector seperately