Tweak spacing and fix some bad practices

Change == to === and do not use strings (which would be eval'd) in
setTimeouts.