testing device ready with jquery