added android and js mode