Fixed a few bugs in core.js and wordban.js