added conditional for office page js