Cleanup jslint errors and unneeded console logs