Update primitives.js