The core js function and console output works when the nText var is set manually (var nText = "exampleText" for instance) but I\'m trying to make it take textbox input