Fix up some bad practice and delint sphero.js