Check:
The device you want to connect is correct.
Permissions are allowed to execute javascript.