[Issue #91 and #172] modal toggle and modal for js