inline JavaScript detection