One of the browsers that support JS is elinks version greater than 0.13.
Most of the package managers have elinks 0.12 and it does not support JS.
As it is open source the obvious solution is to compile.
tar xjvf elinks-current-0.13.tar.bz2
Then Check for ECMAScript support.
If supported continue with
sudo make install
or install java script developer package.
for CentOS 7 it is called js-devel, for your OS it might vary
last step is to verify
Built on May 22 2020 17:44:52
Standard, IPv6, UTF-8, Periodic Saving, Viewer (Search History, Timer,
Marks), Cascading Style Sheets, Protocol (Authentication, File, FTP,
HTTP, URI rewrite, User protocols), MIME (Option system, Mailcap,
Mimetypes files), LED indicators, Bookmarks, Cookies, ECMAScript
(SpiderMonkey), Form History, Global History, Scripting (Spidermonkey
ECMAScript), Goto URL History