started updating javascript for pilot 3