Improve JS style

Only thing left is to remove `asi`, but not sure when I'll get to that (if ever).

/CC @twbs/team