Update old code-base with broken apart primitives.js file.