Your app + GPL'd library + release -> open source GPL'd app.
This is the intention of the FSF and the GPL, and it applies regardless of what programming language you are using.
A GPL'd JavaScript lib will infect all your JavaScript code. Probably won't infect your HTML, page content, or server-side code.
So, please don't release JavaScript libs under the GPL, if you intend them for general use.