Update teste.js

upgrade this code