Upgraded JS libraries to most recent versions

http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8707