Updated smg.js library