Fix Ajax calls for Android, formatting