Update modal.js

cleaning, removing not needed stuff