JQuery would interpret characters such as '.' in the package ids as part of the query syntax, which it is not. Much simpler not to use JQuery in this case.