Fix javascript error (typo) spotted by andyb2000