moving modal focusing JS to separate file