-Update JS element checking