Update jquery interval check to support void javascript execution