apparently I don't understand javascript