Update kaleido.js

missing semicolons and other cleanup