started on javascript for the modals