formatting changes

code formatting changes that should help with jslint.