The method defined in the positioning JS