changed ondeviceready pleacement