Update libraries.js to fix throw $ is not defined

Reference: https://cloudup.com/c4FtrBr7vs1