Update nipsweb.managelibrary.js

.val() is jQuery, not pure js