fixing deviceready onload