Continuing attempting to fix bugs in Java/Javascript conversion.