Upgrade query to 1.11.1 and add embedAlert function to handle js libraries which can not be embeded