start of program-edit javascript code