extracting invarient ng javascript path