Fixed JavaScript error

Whoops, used reserved word by accident.