Add JS type detection