Some minor JS file cleanup