Added isHybrid check in JS