Moved main code into jQuery on ready event. Testing alert on android.