Update shared.js