Update scripts to manipulate HTML attributes via native JS instead of jQuery