Update get-type.js