Fix package.json and update JavaScript library.