Remove unused global code from archetype.js