modificar js

refactor js