GetProp Method calling js exception