Create modal.js

jquery function code for the modal window functionality