click body close ppup + firefox jump fix + sync close/open

Body onclick=close popup
Firefox, no longer a jump when opening popup (timing class toggle)
set both 50ms delay, so sync close/open