fixed two bugs under firefox: hit test logic broken (causing game freeze); shading of last move in history pane broken due to malformed HTML color code