Fixed jQuery check in promisedTitle