updating term plan js