Fix browser compatibility and add js for android