remove a couple of unnecessary var statements, whitespace
add a semi-colon
remove a bunch of trailing whitespace