still further javascript tidy up.