When I typed this apparently innocent snippet of code:
values.name
gedit highlighted name as a keyword. However,
(I know this was asked 2 years ago but, ...) This happened to me also, for example this below would not work.
name = document.getElementById('nombre');
//something else
name.className = 'thinking';
Instead I changed it to
username = document.getElementById('nombre');
//something else
username.className = 'thinking';
and it did work! Yeah, alright that's all, but it's something I find maybe quite interesting, also because of the 'name' attribute of the 'a' tag. Something to watch out for.