minor update on pure.js, work on v3