Message in modal is now dependent on javascript var