javascript updates to generate cv code