modal javascript moved to layout.phtml