FIX Wait until deviceready to run js