Updated main.js for android.