bug: js .val() replace of .text()