javascript get function properties