Refactor the aquos script and handle TVs without a username/password set