window.onload test phone gap