Trying to make this javascript work
Modal working, page dynamically changes