Fixed zh2en lookup and also properly implemented the sidebar messagebox
functions and made zh2en and pi2en consistent in that regard.
Removed logging from javascript.