Adds some readability changes to js (no functionality change)