modal working; figured out JS closures;