Fixed minor bugs in JS android code. Successful build and test!