bug fix: check for 2nd diag. changed to local jQuery libary