Second cleanup pass on javascript files

Signed-off-by: William Rockwood <wrockwood@tadl.org>