Added artifact.js add method fix