Edited javascript only for Android