Minor cleanups in basestar.js