Fixed a typo.
Various fixes to betterjs branch.