Fix JSLint warnings
Apply style in a more declarative way.