I have some code I use when I want to open modal boxes in javascript, but up until now the initial function sets up the modal box and then exits, and the "return"