[FIX] JS bug in HTTP detection